# coding=utf-8
from .views import MovieDetail, MovieIndexView, commentVerify, praiseVerify
from .views import search, stampVerify, MovieReviews,datatip,full_text_search
from django.conf.urls import url, include

urlpatterns = [
	# url(r'^index/$', hello, name='index'),  # 测试用
	url(r'^(?P<page>\d*)/$', MovieIndexView.as_view(), name='movie_index'),
	url(r'^search/$', search, name='movie_search'),
	url(r'^search/datatip/', datatip),
	url(r'^movie_info/', include([
		url(r'^commentVerify/', commentVerify, name="commentVerify"),
		url(r'^stampVerify/', stampVerify, name='stampVerify'),
		url(r'^praiseVerify/', praiseVerify, name='praiseVerify'),
		url(r'^(?P<pk>[0-9]+)/$', MovieDetail.as_view(), name='movie_detail'),
	])),
	url(r'^movie/(?P<pk>[0-9]+)/reviews/(?P<page>\d*)/$', MovieReviews.as_view(), name='movie_reviews'),
	url(r'^full_text/result/$', full_text_search, name="full_text_search"),
]
